package com.wuzhun.wxmp.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wuzhun.wxmp.model.dto.BaseDTO;
import com.wuzhun.wxmp.model.dto.WechatDTO;
import com.wuzhun.wxmp.model.entity.Wechat;

import java.util.List;

/**
 * <p>
 * 微信公众号表 服务类
 * </p>
 *
 * @author renbaolin
 * @since 2022-12-03
 */
public interface IWechatService extends IService<Wechat> {

    /**
     * 分页查询公众号
     *
     * @param pageMessage
     * @param queryWrapper
     * @return
     */
    Page<WechatDTO> listByPage(Page<Wechat> pageMessage, QueryWrapper<Wechat> queryWrapper);
    /**
     * 根据id查询公众号
     *
     * @param idList
     * @return
     */
    List<WechatDTO> queryCategoryById(List<Integer> idList);

    /**
     * 查询公众号列表
     *
     * @return
     */
    List<WechatDTO> queryList();

    /**
     * 查根据条件询公众号查询
     *
     * @param queryWrapper
     * @return
     */
    List<WechatDTO> queryListByWrapper(QueryWrapper<Wechat> queryWrapper);

    /**
     * 查询公众号
     *
     * @param id
     * @return
     */
    WechatDTO queryOne(Integer id);

    /**
     * 批量删除公众号
     *
     * @param idList
     * @return
     */
    boolean batchDelete(List<Integer> idList);

    /**
     * 补充公众号
     *
     * @param baseDTOS
     */
    void fillCategoryInfo(List<? extends BaseDTO> baseDTOS);
}
